package easytalk.connectivity.googletalk;

import org.jivesoftware.smack.filter.PacketFilter;
import org.jivesoftware.smack.packet.Packet;

import common.Locutor;

public class GoogleTalkPacketFilter implements PacketFilter {

	private Locutor locutor= null;
	public GoogleTalkPacketFilter(Locutor locutor) {
		this.locutor = locutor;
	}

	@Override
	public boolean accept(Packet arg0) {
		return true;
		//	if (locutor == null)
		//	return true;
	//	return arg0.getFrom().startsWith(locutor.getId());
	}

}
